﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApp1
{
    public partial class 登入 : Form
    {
        public 登入()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            SQLmanager s = new SQLmanager();
            bool b = s.DR(textBox1.Text, Int32.Parse(textBox2.Text));
            if (b)
            {
                MessageBox.Show("登入成功!!");
                this.Close();
            }
            else
            {
                MessageBox.Show("用户名或密码错误!!");
            }
        }
    }
}
